
<script type="text/javascript">
	$(document).ready(function () {
    	$('#username').focus();
	});
</script>

<div class="clear"><?php echo nbs(); ?></div>
<div id="login-area" class="prepend-6 append-7">
	<div id="login-box">
		<div id="login-box-header">
			<h2>Login</h2>
		</div>
		<div class="form">
<?php echo form_open('home/index', array('class' => 'form')); ?>
<?php if ($error !== FALSE) :?>
				<span class="error"><?php echo $error; ?></span><br /><br />
<?php endif;
	if ($username === FALSE) {
		$username = set_value('username');
	}
?>
				<label>Username <?php echo form_error('username'); ?></label><br />
				<input id="username" type="text" name="username" value="<?php echo $username; ?>" class="title" maxlength="32" />
				<label>Password <?php echo form_error('password'); ?></label><br />
				<input type="password" name="password" value="" class="title" maxlength="32" />
				<br /><br />
				<input type="submit" value="login" class="submit" name="submit" />
<?php echo form_close(); ?>
		</div>
	</div>
</div> 
